﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 物料信息
    /// </summary>
    [Comment("物料信息表")]
    public class Material : DEntityTenant
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Comment("名称")]
        [Required, MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [Comment("批次号")]
        public string Code { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [Comment("规格型号")]
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Comment("单位")]
        public string Unit { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注")]
        [MaxLength(100)]
        public string Remark { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        [Comment("供应商ID")]
        public long SupplierId { get; set; }

        public Supplier Supplier { get; set; }
    }
}
